﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Models;

[Table("MaterialProperty")]
public partial class MaterialProperty
{
    [Key]
    public Guid MaterialProertyid { get; set; }

    /// <summary>
    /// 属性名称
    /// </summary>
    public string MaterialProertyname { get; set; } = null!;

    /// <summary>
    /// 单位
    /// </summary>
    public string? Unit { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public string? Type { get; set; }

    /// <summary>
    /// 说明
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 批次号
    /// </summary>
    public string? Batch { get; set; }

    /// <summary>
    /// 物料大小
    /// </summary>
    public string? Size { get; set; }

    public string? Info { get; set; }

    public string? Info2 { get; set; }

    public string? Info3 { get; set; }

    public string? Info4 { get; set; }

    [InverseProperty("MaterialPropertyMaterialProerty")]
    public virtual ICollection<MaterialBase> MaterialBases { get; set; } = new List<MaterialBase>();
}
